package com.yyb.boot.web;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description Description
 * @Author 一一哥Sun
 * @Date Created in 2020/3/28
 *
 * 以@CrossOrigin注解方式实现跨域访问.
 */
@RestController
public class UserController {

    @CrossOrigin(origins = "http://localhost:8088")
    @GetMapping("/msg")
    public String showMsg() throws Exception {

        return "suucess";
    }

}
